import request from '@/utils/request'

// 获取banner
export function listBanner () {
  return request('/banners')
}

// 获取随机资源
export function listRandom (params) {
  return request('/random', params)
}

// 获取列表数据
export function queryListData ({ category, type, page, count }) {
  return request('/data', `/category/${category}/type/${type}/page/${page}/count/${count}`)
}

// 获取本周最热
export function queryHotThisWeek (hotType, category, count) {
  return request(
    '/hot',
    `/${hotType}/category/${category}/count/${count}`
  )
}

// 获取妹纸详情
export function queryGirlDetails (id) {
  return request(
    '/post',
    `/${id}`
  )
}

// 获取评论
export function listComments (id) {
  return request(
    '/post/comments',
    `/${id}`
  )
}
